<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Class View
 * 
 * @author lix
 * @version 1.0
 */

class View{
	
	private $theme;
	private $theme_path;
	
	private $arguments;
	
	public function __construct(){
		$this->theme = variable_get('default_theme', 'simple');
		$this->theme_path = BASEPATH . 'themes/' . $this->theme;
		
		$template_file = $this->theme_path . '/template.php';
		traclog("View Init, The skin theme is " . $this->theme);
	}

	public function setHook($args = array()){
		if(count($args) > 3){
			$this->arguments = array_slice($args, 0, 3);
		}else{
			$this->arguments = $args;
		}
	}
	
	public function render(){
	
	}
	
	public function theme(){
		
	}
	
	/**
	 * 所有内容都从这里输出~~~~
	 */
	public function display($tpl = 'page',$content = ''){
		
	}
}